package com.jiyun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiyun.pojo.ThOrder;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author usian
 * @since 2022-10-25
 */
public interface ThOrderMapper extends BaseMapper<ThOrder> {

    @Select("SELECT * FROM th_order ORDER BY commission/order_quantity DESC")
    List<ThOrder> orderByDesc();

}
